package com.qing.consumer;

import com.qing.myrule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//在微服务启动时，就能去加载自定义Ribbon类
@RibbonClient(name = "springcloud-provider-user",configuration = MyRule.class)
public class UserConsumer8002 {

    public static void main(String[] args) {
        SpringApplication.run(UserConsumer8002.class,args);
    }
}
